<%-- 
    Document   : requestNewPassword
    Created on : Jan 2, 2013, 9:13:01 PM
    Author     : berto
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Request new passwrod:</h1>
        <div class="content">
        <%
        String mess="";
        if(request.getParameter("error")!=null){
            mess="One error occurred, please try again:";
        }
        %>
        <h2>Insert your email</h2>
        <br/>
        <p id="new_password_error_log"><%=mess%></p>
        <form name="form_new_password" action="<%=request.getContextPath()%>/contents/public/requestNewPassword"
              method="post"/>
        <table>
            <tr>
              <td>Your email: </td>
              <td><input type="text" name="email" /></td>
            </tr>
            <tr>
                <td>Captcha: </td>
                <td>
                    <img id="captcha" src="<c:url value="/images/simpleCaptcha.jpg" />" width="150">
                    <br/>
                    <input type="text" name="answer" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="button" onclick="check()" name="send_request" value="Send request"/>
                </td>
            </table>
             <script type="text/javascript" src="<%=request.getContextPath()%>/javascript/requestNewPassword.js"></script>
        </form>
                    </div>
    </body>
</html>
